<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
	$action = chkstr(trim($_REQUEST['action']));
	$kboy_userid = $_SESSION['kboy_userid'];
	$kboy_user = $_SESSION['kboy_user'];
	$WIDout_trade_no = chkstr(trim($_REQUEST['WIDout_trade_no']));
	 if(getNewsNums("kboy_order","order_no='$WIDout_trade_no' and uid='$kboy_userid'") <1){
		echo erro('参数错误');
	    }
	if($action == "weixinurl"){//保存订单信息
       
		$state = getClassName("kboy_order","order_state","order_no='$WIDout_trade_no' and uid='$kboy_userid'");
		if($state == 1){
		  echo 1;die();
		}
		else{
		 echo 0;die();
		}
	}
?>